package com.psa.element;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Created by david on 14-3-12.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(value = {ElementType.FIELD, ElementType.METHOD})
public @interface Column {
    boolean isPrimaryKey() default false;

    boolean isAutoincrement() default false;
    /** Column type. */
    FieldType type() default FieldType.STRING;
    /** Column name. */
    String name();
    /** Column Caption. */
    String caption() default "";

    String mapping() default "";

    int index() default 0;

    int inputType() default 0;

    boolean required() default false;

    String dataSource() default "";
}
